package com.foreveross.common.Exception;
//自定义异常 思源获取异常
public class SYHttpclientCallException extends RuntimeException {
	private static final long serialVersionUID = -3427588482694233773L;

	public SYHttpclientCallException(String msg,Throwable cause)
    {
        super(msg,cause);
    }
	
	public SYHttpclientCallException(String msg)
    {
        super(msg);
    }
	
	/**
	 * 抛出自定义 思源接口异常
	 * @param e
	 */
	public static void throwSYHttpclientCallException(Exception e) {
		throw new SYHttpclientCallException("第三方接口异常,请与管理员联系!",e);
	}
	
	
	public static void throwSYHttpclientCallNULLException() {
		throw new SYHttpclientCallException("第三方接口未查询到相关数据!");
	}
	
	public static void throwSYHttpclientCallERRORException() {
		throw new SYHttpclientCallException("第三方接口提示异常,请检查数据格式!");
	}
}
